package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

public interface SupplierDao {
    void save(Supplier supplier);

    List<Supplier> querySupplierByPage(@Param("offSet") Integer offSet, @Param("pageRow") Integer pageRow, @Param("supplierName") String supplierName);

    Integer countSupplier(@Param("supplierName") String supplierName);

    void update(Supplier supplier);

    void deleteSupplier(String id);
}
